﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="PackageProductSNModify.aspx.cs" Inherits="ProductRepair_ManageRepair_PackageProductSNModify" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
   
    <script type="text/javascript">
  <!--
     document.onkeydown = function() {
         if (event.keyCode == 13 && event.srcElement.type == "text") {
             event.keyCode = 9;
         }
     }
   //-->
  </script>
    <div style=" text-align:center;">
        <br />
        <br />
        <br />
        <br />
        <br />
        <div style=" text-align:center;">
        <table style="width: 60%; border:solid 1px black;  margin:0 auto;">
            <tr>
                <td style=" width:40%;">
                    新的成品序列号：</td>
                <td style=" width:40%;">
                    <asp:TextBox ID="TextBox6" runat="server" TabIndex="1" onfocus="javascript:this.select();" ></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                        ControlToValidate="TextBox6" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                </td>
                <td rowspan="2" style=" width:20%;">
                    <asp:Button ID="Button2" runat="server" Text="替 换" ValidationGroup="VGroup1" 
                        onclick="Button2_Click" TabIndex="3" />
                                        </td>
            </tr>
            <tr>
                <td style=" width:40%;">
                    旧的成品序列号：</td>
                <td style=" width:40%;">
                    <asp:TextBox ID="TextBox1" runat="server" TabIndex="2"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="TextBox1" ErrorMessage="*" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                </td>
            </tr>
            </table>     
            </div>       
        <br />
        <br />
        <div style=" text-align:center;">
        <br />
        <table style="width: 60%; border:solid 1px black;  margin:0 auto;">
            <tr>
                <td>
                    按新的成品序列号查询替换记录：</td>
                <td>
                    <asp:TextBox ID="TextBox3" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                        ControlToValidate="TextBox3" ErrorMessage="*" ValidationGroup="VGroup2"></asp:RequiredFieldValidator>
                </td>
                <td>
                    <asp:Button ID="Button3" runat="server" Text="查 询" ValidationGroup="VGroup2" 
                        onclick="Button3_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    <asp:GridView ID="GridView1" runat="server" BackColor="White"  Width="100%"
                        BorderColor="White" BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" 
                        CellSpacing="1" GridLines="None" AutoGenerateColumns="False" >
                        <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                        <Columns>
                            <asp:BoundField DataField="PackageProductSN" HeaderText="新的成品序列号" />
                            <asp:BoundField DataField="OldPackageProductSN" HeaderText="旧的成品序列号" />
                            <asp:BoundField DataField="RecordTime" HeaderText="记录时间" />
                            <asp:BoundField DataField="UserID" HeaderText="操作员" />
                        </Columns>
                        <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                        <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
                    </asp:GridView>
                </td>
            </tr>
        </table>        
        <br />
        <br />
        <br />   
        <br />
        <br />
    </div>

        <br />
    </div>
</asp:Content>

